import Layout from "@/layout/index.vue";
import RouterList from "./routerList";
export default [
  // 路由公共配置
  {
    path: "/",
    component: Layout,
    redirect: "index",
    children: [
      {
        path: "/Index",
        name: "Index",
        component: () => import("@/views/index.vue"),
        meta: {
          title: "首页",
          icon: "HomeFilled",
          path: "/Index",
          permissions: "xxxx",
        },
      },
      // 路由页面
      ...RouterList,
      // 个人中心
      {
        path: "/PersonalCenter",
        name: "PersonalCenter",
        component: () => import("@/views/personalCenter.vue"),
        meta: {
          title: "个人中心",
          path: "/PersonalCenter",
          icon: "xxx",
          permissions: false,
          
        },
      },
    ],
  },
  {
    path: "/Login",
    name: "Login",
    component: () => import("@/views/login.vue"),
    meta: {
      title: "登录",
      path: "/Login",
      icon: "xxx",
      permissions: "xxxx",
    },
  },
];
